﻿<%@ Control Language="C#" Inherits="Core.Web.Code.UI.Controls.ViewPost" %>
<asp:Repeater ID="rptTopic" runat="server">
    <HeaderTemplate>
        <ul>
    </HeaderTemplate>
    <ItemTemplate>
        <li style="float: left;"><a href="javascript:void(0)" onclick='getPostsByTopic("<%# Eval("ID") %>")'>
            sdsd</a></li>
    </ItemTemplate>
    <SeparatorTemplate>
        &nbsp;|&nbsp;
    </SeparatorTemplate>
    <FooterTemplate>
        </ul>
    </FooterTemplate>
</asp:Repeater>
<div id="PostContainer" style="clear: both">
</div>
<script type="text/javascript">
    function getPostsByTopic(topicId) {
        $('#PostContainer').html('Loading...');
        $.post('AjaxService/AjaxPost.ashx?mid=8', function (data) {
            $('#PostContainer').html(data);
        });
    }
</script>
